package com.hgyc.mom.mes.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * sop上传文件
 * </p>
 *
 * @author fwj
 * @since 2025-06-18
 */
@Data
@TableName("sop_attachment")
@Schema(name="sop上传文件对象", description="sop上传文件对象")
public class SopAttachment implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "文档附件ID")
    private Long id;

    @Excel(name = "")
    @Schema(description = "")
    private Long documentId;

    @Excel(name = "")
    @Schema(description = "")
    private Long parentId;

    @Excel(name = "上传类型")
    @Schema(description = "上传类型")
    private String storage;

    @Excel(name = "文件名")
    @Schema(description = "文件名")
    private String fileName;

    @Excel(name = "文件路径")
    @Schema(description = "文件路径")
    private String fileUrl;

    @Excel(name = "文件类型")
    @Schema(description = "文件类型")
    private String fileType;

    @Excel(name = "文件大小")
    @Schema(description = "文件大小")
    private Long fileSize;

    @Excel(name = "页码")
    @Schema(description = "页码")
    private Integer page;

    @Excel(name = "图片序号")
    @Schema(description = "图片序号")
    private Integer serialNumber;

    @Excel(name = "")
    @Schema(description = "")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "")
    private LocalDateTime updateTime;

}